﻿using System;
using T.FAS.Runtime.ScheduleJob.SPI;

namespace T.FAS.Runtime.ScheduleJob.Engine
{
    public class ScheduleJobExecuteEngineProvider
    {
        public static IScheduleJobExecuteEngine Create(ScheduleJobExecContext context)
        {
            //IScheduleJobExecuteEngine engine = null;
            //if (context != null && context.ScheduleJobMetaData != null)
            //{
            //    switch (context.ScheduleJobMetaData.JobType)
            //    {
            //        case Metadata.Entity.JobType.Subscription:
            //            engine = new ScheduleJobSubscriptionExecuteEngine();
            //            break;
            //        default:
            //            engine = new ScheduleJobExecuteEngine();
            //            break;
            //    }
            //}
            //else
            //{
            //    engine = new ScheduleJobExecuteEngine();
            //}
            return new ScheduleJobExecuteEngine();
        }
    }
}
